package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.AgentMapper;
import com.wanmait.baohan.pojo.Agent;
import com.wanmait.baohan.service.AgentService;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class AgentServiceImpl implements AgentService {
    @Resource
    private AgentMapper agentMapper;
    @Override
    public void insert(Agent object) {
        agentMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Agent object) {

    }

    @Override
    public Agent findById(Integer id) {
        return null;
    }

    @Override
    public List<Agent> findAll() {
        return null;
    }

    @Override
    public List<Agent> findAll(Agent object) {
        return null;
    }

    @Override
    public PageInfo<Agent> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Agent> findPage() {
        return null;
    }

    @Override
    public PageInfo<Agent> findPage(int pageNum, Agent object) {
        return null;
    }

    @Override
    public PageInfo<Agent> findPage(Agent object) {
        return null;
    }

    @Override
    public List<Agent> selectAllForCustomerId(Integer id) {
        return agentMapper.selectAllForCustomerId(id);
    }
}
